<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head th:include="base/include/head">
</head>
<body>
<div style="padding:10px;">
	<form id="formBox">
		<table>
			<input type="hidden" name="id" th:value="${menu.id}" />
			<tr>
				<td>名称：</td><td><input name="menuName" class="easyui-textbox" style="height: 21px;width:180px" th:value="${menu.menuName}" /></td>
			</tr>
			<tr>
				<td>描述：</td><td><input name="menuDesc" class="easyui-textbox" style="height: 21px;width:180px" th:value="${menu.menuDesc}" /></td>
			</tr>
			<tr>
				<td>图标：</td><td><input name="menuIcon" class="easyui-textbox" style="height: 21px;width:180px" th:value="${menu.menuIcon}" /></td>
			</tr>
			<tr>
				<td>路径：</td><td><input name="menuLink" class="easyui-textbox" style="height: 21px;width:180px" th:value="${menu.menuLink}" /></td>
			</tr>
			<tr>
				<td>权限码：</td><td><input name="menuPermission" class="easyui-textbox" style="height: 21px;width:180px" th:value="${menu.menuPermission}" /></td>
			</tr>
			<tr>
				<td>排序号：</td><td><input name="orderLevel" class="easyui-textbox" style="height: 21px;width:180px" th:value="${menu.orderLevel}" /></td>
			</tr>
<!-- 			<tr>
				<td>所属系统：</td>
				<td>
					<select id="systemId"  name="systemId" class="easyui-combobox" style="height: 21px;width:180px">
						<option value="">请选择...</option>
						<option th:value="${model.id}" th:each="model : ${modelList}"  th:selected="${menu.systemId eq model.id}" th:text="${model.systemName}">第一级菜单</option>
					</select>
				</td>
			</tr> -->
			<tr>
				<td>级别：</td>
				<td>
					<select id="menuLevel"  name="menuLevel" class="easyui-combobox" style="height: 21px;width:180px" data-options="onChange:function(n,o){findMenus();}">
						<option value="0"   th:selected="${menu.menuLevel == 0}">第一级菜单</option>
						<option value="1" 	th:selected="${menu.menuLevel == 1}">第二级菜单</option>
						<!-- <option value="2" 	th:selected="${menu.menuLevel == 2}">功能菜单</option> -->
					</select>
				</td>
			</tr>
			<tr>
				<td>父菜单：</td>
				<td>
					<select id="fid" name="fid" class="easyui-combobox" style="height: 21px;width:180px" th:readonly="${menuLevelList == null}">
						<option th:each="category:${menuLevelList}" th:value="${category.id}" th:text="${category.menuName}" 
						th:selected="${menu.fid eq category.id}" >菜单名称</option>
					</select>
				</td>
			</tr>
			<!--<tr>
				<td>功能平台：</td>
 				<td>
					<select id="pageType"  name="pageType" class="easyui-combobox" style="height: 21px;width:180px" data-options="onChange:function(n,o){findMenus();}">
						<option value="ALL" 	th:selected="${menu.pageType eq 'ALL'}">所有</option>
						<option value="PC"   th:selected="${menu.pageType eq 'PC'}">电脑</option>
						<option value="MB" 	th:selected="${menu.pageType eq 'MB'}">移动</option>
					</select>
				</td> 
			</tr>-->
			<tr>
				<td colspan="2" style="text-align: center;">
					<a href="javascript:saveOrUpdateMenu('../menu/saveOrUpdateMenu')" class="easyui-linkbutton" iconCls="icon-add" >确定</a>
					<a href="javascript:$('#dd').dialog('close');" class="easyui-linkbutton" iconCls="icon-cancel">关闭</a>
				</td>
			</tr>
		</table>
	</form>
</div>
</body>
</html>